$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .banner {
    width: 100%;
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .t {
      position: absolute;
      left: 50%;
      top: 45%;
      transform: translate(-50%, -50%);
      color: #FFF;
      font-size: $fontSize_54;
      font-weight: 700;
    }

    .add {
      position: absolute;
      left: 50%;
      bottom: 30%;
      transform: translateX(-50%);
      z-index: 10;
      transition: all 600ms;
      img{
        width: 60/$f+vw;
      }
      &:hover {
        transform:translateX(-50%) rotate(180deg);
      }
    }
  }

  .section1 {
    width: 100%;
    background: url('../images/contact_bg1.png') no-repeat;
    background-size: cover;
    padding: 4vw 0;

    .t {
      text-align: center;
      color: #333;
      font-size: $fontSize_40;
      font-weight: bold;
    }

    .allItems {
      width: 60vw;
      margin: 2vw auto 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .item {
        width: calc(31% - 2vw);
        border-radius: 5px;
        border: 1px solid #79C536;
        background: rgba(255, 255, 255, 0.13);
        box-shadow: 0px 5px 10px 0px rgba(230, 230, 230, 0.80);
        padding: 1vw;
        display: flex;
        margin-bottom: 2vw;

        .text {
          margin-left: 1vw;

          .p1 {
            color: #333;
            font-size: $fontSize_16;
            font-weight: 600;
          }

          a {
            color: #559534;
            font-size: $fontSize_14;
          }
        }
      }
    }
  }

  .section2 {
    width: 100%;
    background: url('../images/contact_bg2.png') no-repeat;
    background-size: cover;
    padding: 4vw 0;

    .t {
      text-align: center;
      color: #fff;
      font-size: $fontSize_40;
      font-weight: bold;
    }

    .allItems {
      display: flex;
      justify-content: space-between;
      width: 70vw;
      margin: 2vw auto;

      .item {
        width: 33.3%;
        border: 1px solid rgba(255, 255, 255, 0.76);
        background: rgba(255, 255, 255, 0.13);
        backdrop-filter: blur(5px);
        padding-bottom: 2vw;
        .p1{
          border-bottom: 1px solid rgba(255, 255, 255, 0.62);
          color: #FFF;
          text-align: center;
          font-size: $fontSize_22;
          padding: 1vw 0;
        }
        .info{
          padding: 1vw 2.2vw;
          color:white;
          font-size: $fontSize_18;
          line-height: 1.8;
          .phone{
            display: flex;
          }
        }
      }
    }
  }

  .section3{
    width: 65vw;
    margin: 4vw auto;
    .t {
      text-align: center;
      color: #333;
      font-size: $fontSize_40;
      font-weight: bold;
    }
    .t2{
      color: #666;
      font-size: $fontSize_22;
      text-align: center;
      margin: 10px 0;
    }
    .form{
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin: 2vw 0;
      .item{
        width: 48%;
        margin-bottom: 1vw;
        p{
          color: #666;
          font-size: $fontSize_16;
          span{
            color: #F00;
          }
        }
        input{
          width: 100%;
          outline: none;
          border: none;
          background: #F5F5F5;
          padding: 1vw 0;
          margin-top: 10px;
          text-indent: 10px;
          font-size: $fontSize_16;
          color: #666;
        }
      }
      .msg{
        width: 100%;
        textarea{
          width: 100%;
          outline: none;
          border: none;
          background: #F5F5F5;
          padding:10px 0;
          margin-top: 10px;
          text-indent: 10px;
          font-size: $fontSize_16;
          resize: none;
          height: 156/$f+vw;
          color: #666;
        }
      }
      .submit{
        width: 100%;
        .btn{
          margin: 0 auto;
          background: linear-gradient(280deg, #92D341 -27.68%, #4FAD24 104.15%);
          width: fit-content;
          padding: 0.6vw 4vw;
          color:white;
          font-size: $fontSize_16;
          cursor: pointer;
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .bg{
        img{
          height: 300px;
        }
      }
      .t{
        font-size: 20px;
      }
      .add{
        bottom:25%;
        img{
          width:20px;
        }
      }
    }
    .section1{
      padding: 30px 0;
      .t{
        font-size: 24px;
      }
      .allItems{
        width: 90%;
        flex-wrap: wrap;
        margin: 20px auto;
        .item{
          width: calc(100% - 30px);
          padding: 15px;
          margin-bottom: 15px;
          .text{
            margin-left: 10px;
            .p1{
              font-size: 16px;
            }
            a{
              font-size: 14px;
            }
          }
        }
      }
    }
    .section2{
      padding: 30px 0;
      .t{
        font-size: 24px;
      }
      .allItems{
        width: 90%;
        margin: 20px auto 0 auto;
        flex-wrap: wrap;
        .item{
          width: 100%;
          margin-bottom: 20px;
          .p1{
            font-size: 16px;
            padding: 10px 0;
          }
          .info{
            padding: 15px;
            font-size: 14px;
          }
        }
      }
    }
    .section3{
      width: 90%;
      margin: 30px auto;
      .t{
        font-size: 24px;
      }
      .t2{
        font-size: 16px;
      }
      .form{
        margin: 20px 0;
        .item{
          margin-bottom: 20px;
          p{
            font-size: 14px;
          }
          input{
            padding: 10px 0;
            font-size: 14px;
          }
        }
        .msg{
          textarea{
            font-size: 14px;
            height: 80px;
          }
        }
        .submit{
          .btn{
            font-size: 14px;
            padding: 8px 40px;
          }
        }
      }
    }
  }
}